package com.zyz.M_File和IO流.File类.重命名;

import java.io.File;

/**
 * @author: vick
 * @Date: 2025/4/7
 * @Description:
 * @version: 1.0
 */
public class Demo {
    public static void main(String[] args) {
        File file1 = new File("D:\\environment\\ideaProject\\java-Phase-one\\java_study\\hello.txt");
        File file2 = new File("D:\\environment\\ideaProject\\java-Phase-one\\java_study\\vick.txt");
        boolean b = file1.renameTo(file2);
        System.out.println(b);
    }
}
